//package cn.tedu.nacos.demo.controller;
//
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.cloud.context.config.annotation.RefreshScope;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
////开启动态刷新
//@RefreshScope
//public class NacosController {
////从配置中心读取数据
//    @Value("${my.name}")
//    private String name;
////用请求测试读取的值
//    @GetMapping("/")
//    public String test(){
//        return name;
//    }
//}
